package com.gzhryc.net_marketing.cloud.business.dao.enums;

public class TeamPayApplyEnum {

	public static enum State {

		Initiating(1, "发起中"), Opening(2, "团拼中"),
			WaitSettlement(3, "等待结算"), Drain(4, "流拼"), Finish(5, "完成"),
			StartSettlement(6, "结算中"),Close(7, "关闭");

		private Integer index;
		private String note;

		State(Integer index, String note) {
			this.index = index;
			this.note = note;
		}

		public Integer index() {
			return index;
		}

		public String note() {
			return note;
		}

		public static String note(Integer index) {
			State[] temp = State.values();
			for (int i = 0; i < temp.length; i++) {
				State item = temp[i];
				if (item.index.equals(index)) {
					return item.note;
				}
			}
			return null;
		}
	}
}
